<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8"/>
    <title>header</title>

    <link href="../../static/css/all.css" rel="stylesheet" type="text/css"/>
    <script src="../../static/js/main.js"></script>
</head>
<body>
<div class="navBar" th:fragment="header">
    <div class="navBar-container">
        <div class="navBar-title">
            <ul class="nav">
                <li>
                    <a href="#">SED</a>
                </li>
            </ul>
        </div>
        <div class="navBar-content">
            <nav>
                <ul class="nav">
                    <li th:classappend="${page == 'home' ? 'active' : ''}">
                        <a href="#" th:href="@{/sed/examine}">审核</a>
                    </li>

                    <li th:classappend="${page == 'messages' ? 'active' : ''}" sec:authorize="hasRole('ROLE_ADMIN')">
                        <a href="#" th:href="@{/sed/complaints}">申诉</a>
                    </li>

                    <li th:classappend="${page == 'home' ? 'active' : ''}">
                        <a href="#" th:href="@{/sed/query}">查询</a>
                    </li>

                    <li th:classappend="${page == 'tasks' ? 'active' : ''}">
                        <a href="#" th:href="@{/message/new}">消息</a>
                    </li>

                    <!--<li th:classappend="${page == 'tasks' ? 'active' : ''}" sec:authorize="hasRole('ROLE_ADMIN')">-->
                        <!--<a href="#">管理</a>-->
                        <!--<span class="arrow"></span>-->
                        <!--<dl>-->
                            <!--<dd><a href="#" th:href="@{/manage/outStorage}">出库</a></dd>-->
                            <!--<dd><a href="#" th:href="@{/newMessage}">新建消息</a></dd>-->
                            <!--<dd><a href="#" th:href="@{/manage/itemindate}">有效期管理</a></dd>-->
                            <!--<dd><a href="#">库存管理</a></dd>-->
                            <!--<dd><a href="#">统计信息</a></dd>-->
                        <!--</dl>-->
                    <!--</li>-->
                </ul>
            </nav>
        </div>
        <div class="navBar-user">
            <ul class="nav">
                <!--/*@thymesVar id="user" type="com.repository.entity.UsersEntity"*/-->
                <li class="icon-user" th:if="${session.user!= null}">
                    <a href="#" th:text="${session.user.usersName}">XXX</a>
                </li>
                <li class="icon-exit">
                    <a href="/login" th:href="@{/login/signin}">Logout</a>
                </li>
            </ul>
        </div>
    </div>
</div>
</body>
</html>